<?php

namespace App\Models;

use App\Enum\CardEnum;
use App\Enum\VehicleConfigEnum;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Log;

class CardsModel extends Model
{
    //
    protected $table = 'cards';

    //黑名单
    protected $guarded = [];

    protected $dateFormat = 'U';

    public function getUnitAttribute($value)
    {
        return CardEnum::CARD_VALUE_UNIT[$value];
    }

}
